home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 2.iso / lprint / dgetc.s < prev    next >
Text File  |  1991-10-19  |  691b  |  30 lines

  1. /*   dgetc.s  : direct console getc for gcc on FM-TOWNS
  2.  *
  3.  *         (C) Copyright    Makoto Sakai
  4.  *                      Nifty:    ムンパッパ (MHB02550)     
  5.  *                     junet:    sakai@sra.co.jp
  6.  *
  7.  * Permission to use, copy, modify, and distribute this software and its
  8.  * documentation for any purpose and without fee is hereby granted,
  9.  * provided that the above copyright notice appear in all copies and that
  10.  * both that copyright notice and this permission notice appear in
  11.  * supporting documentation.
  12.  */
  13.     .data
  14.     .text
  15.     .globl _dgetc
  16.  
  17. /*
  18.     dgetc() 
  19. */
  20.     .align 4
  21. _dgetc:
  22.     push  %edx
  23. loop:
  24.     movb  $0x06,%ah
  25.     movb  $0xff,%dl
  26.     int   $0x21
  27.     popl  %edx
  28.     andl  $0xff,%eax
  29.     ret
  30.